import request from "@/utils/request";

//admin权限级别接口
/**
 * 添加sampleStyle,供Admin使用
 */
export function addSampleStyle(row) {
    return request({
        url: '/sample_styles',
        method: 'post',
        data: row
    })
}
/**
 * 查询sampleStyle分页,供后台使用
 */
export function getSampleStyleByPage(pageVo) {
    return request({
        url: '/sample_styles/search',
        method: 'post',
        data: pageVo
    })
}
/**
 * 根据id主键获取单条记录
 */
export function getSampleStyle (id) {
    return request({
        url: '/sample_styles/' + id,
    })
}

/**
 * 根据主键id更新指定行的数据
 */
export function updateSampleStyleById(row) {
    return request({
        url: '/sample_styles/' + row.id,
        method: 'put',
        data: row
    })
}
/**
 * // 根据id主键删除单条记录
 */
export function removeSampleStyleById(id) {
    return request({
        url: '/sample_styles/' + id,
        method: 'delete',
    })
}